package cn.tedu.micro.demo.common.feign;

import cn.tedu.micro.demo.common.protocol.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("micro-demo-stock")
public interface StockFeignClient {
    @PostMapping("stock/update")
    public JsonResult<Void> updateStock(
            @RequestParam("productCode")String productCode,
            @RequestParam("count")Integer count);
}
